package com.njtoyo.taxi.admin.rest.wrapper.business.ride;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.enums.DesignatedCallState;
import com.njtoyo.taxi.admin.mapper.master.enums.DesignatedRideState;
import com.njtoyo.taxi.admin.mapper.master.enums.RideCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Objects;

@EqualsAndHashCode(callSuper = true)
@ApiModel("行程查询")
@Data
public class DesignatedRideQueryWrapper extends Page<DesignatedRideQueryWrapper> {
    public DesignatedRideQueryWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty("行程订单ID")
    private List<Long> ids;

    @ApiModelProperty("行政区ID")
    private Long cantonId;

    @ApiModelProperty("公司ID")
    private Long companyId;

    @ApiModelProperty("订单状态")
    private String state;

    @ApiModelProperty(value = "0:realtime,1:appointment,2:assign")
    private RideCategory category;

    @ApiModelProperty("司机")
    private String driverSearch;

    @ApiModelProperty("乘客")
    private String customerSearch;

    @ApiModelProperty("司机ID")
    private Long driverId;

    @ApiModelProperty("乘客ID")
    private Long customerId;

    private String startDate;
    private String endDate;

    private String plateNumber;


    private DesignatedCallState callState;
    private DesignatedRideState rideState;



}
